core: Note which artifact failed to compose
authorColin Walters <walters@verbum.org>
Mon, 16 Jan 2012 14:57:24 +0000 (09:57 -0500)
committerColin Walters <walters@verbum.org>
Mon, 16 Jan 2012 14:57:24 +0000 (09:57 -0500)
src/ostree/ot-builtin-compose.c

index 30d0aec04e5c30ab9e95bb6eb96456f4e6bf63c0..5019dfa4541b027db9343248288793ffdac98311 100644 (file)
@@ -75,8 +75,11 @@ add_branch (OstreeRepo          *repo,
 
   if (!ostree_repo_stage_directory_to_mtree (repo, subdir, mtree, NULL,
                                              NULL, error))
-    goto out;
-  
+    {
+      g_prefix_error (error, "Error composing %s: ", branch_path);
+      goto out;
+    }  
+
   if (metadata_builder)
     g_variant_builder_add (metadata_builder, "(ss)", branch_path, branch_rev);